package com.component.api.model.flow;

import com.google.common.collect.Lists;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 描述：
 * 流程上下文映射对象
 * @author xianggj
 * @Date 2021/10/14 17:26
 **/
@Data
public class FlowInfo implements Serializable {

    private static final long serialVersionUID = -1L;

    private String flowId;

    /**
     * 提供给日志使用
     */
    private String flowName;

    /**
     * 是否需要结果预览
     */
    private Boolean isNeedViewResult;

    public Boolean getIsNeedViewResult() {
        return isNeedViewResult == null? false : isNeedViewResult;
    }

    /**
     * 节点信息
     */
    private List<NodeInfo> nodes = Lists.newArrayList();

    /**
     * 连线信息
     */
    private List<RelationInfo> edges = Lists.newArrayList();


}
